﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerMaster.master" AutoEventWireup="true" CodeBehind="HistoryOrders.aspx.cs" Inherits="EHTWebsiteProject.HistoryOrders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentView" runat="server">
    <div style="background-color:White;height:3px"></div>
        <div style="background-color:#ff6600; height:20px; padding-top:10px; width: 594px;">
        
    <h2 style="color:White">
        <asp:Label ID="lbCustomerHistoryOfOrder" runat="server" Text="History Of Order"></asp:Label>
    </h2>
     <table style="width: 100%; height: 50px;">
        <tr>
            <td>
                <a id="Order_1" href="../HistoriePalegg-1.html">Bestill Tilføye</a>
            </td>
            <td style="text-align: right; padding-right: 10px">
                <a id ="Order_2" href="../HistoriePalegg-2.html">Bestill Skipsfart</a>
            </td>
            <td style="text-align: right; padding-right: 10px">
                <a id="Order_3" href="../HistoriePalegg-3.html">Bestill Sendt</a>
            </td>
            <td style="text-align: right; padding-right: 10px">
                <a id ="Order_4" href="../HistoriePalegg--1.html">Bestill Alle</a>
            </td>
        </tr>
    </table>
     <asp:GridView ID="grdData" runat="server" AutoGenerateColumns="false" Width="100%" 
                HeaderStyle-Height="26px" BorderColor="#b7d0d4" 
                HeaderStyle-BackColor="#ff6600" HeaderStyle-ForeColor="#ffffff"
                AllowPaging="true" PageSize="8"
                >
        <Columns >
           
            <asp:TemplateField HeaderText="OrderNo" ItemStyle-Width="20" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div runat="server" id="Name" class="formatName"><%# DataBinder.Eval(Container.DataItem, "OrderID")%></a></div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Fullt Navn" ItemStyle-Width="200" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div runat="server" id="Name" class="formatName"><a href ="../Ordredetaljer-<%# DataBinder.Eval(Container.DataItem, "OrderID")%>.html"><%# DataBinder.Eval(Container.DataItem, "ReceivedName")%></a></div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Addresse" ItemStyle-Width="300" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div runat="server" id="Name" class="formatName"><%# DataBinder.Eval(Container.DataItem, "ReceivedAddress")%></div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Telefon" ItemStyle-Width="100" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div runat="server" id="Name" class="formatName"><%# DataBinder.Eval(Container.DataItem, "ReceicedPhone")%></div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Opprettet Dato" ItemStyle-Width="300" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div runat="server" id="Name" class="formatName"><%# String.Format("{0:MM/dd/yyyy}",DataBinder.Eval(Container.DataItem, "CreatedDate"))%></div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Krev Dato" ItemStyle-Width="300" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div runat="server" id="Name" class="formatName"><%#String.Format("{0:MM/dd/yyyy}",DataBinder.Eval(Container.DataItem, "RequireDate"))%></div>
                </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="Totalt Cash(KR)" ItemStyle-Width="200" ItemStyle-HorizontalAlign="left" ItemStyle-Font-Bold="true" HeaderStyle-Font-Names="Tahoma" HeaderStyle-Font-Size="12px"   ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="12px" ItemStyle-ForeColor="#43433d">
                <ItemTemplate>
                    <div  runat="server" id="Name" class="formatName"><%# DataBinder.Eval(Container.DataItem, "TotalAmount")%></div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerSettings Mode="Numeric" Position="TopAndBottom" />
    </asp:GridView>
  </div>
</asp:Content>
